WPS 基础接口 > 文字 API 参考 > Font > 方法 > Font.Grow 方法
将字号增大为下一个可用的字号。

语法

表达式.Grow

表达式   必选。一个代表 Font 对象的变量。

说明

如果所选内容或范围包含多种字号,则将每一个字号都增大为下一个可用的设置。

示例

以下示例增大新文档中第四个单词的字号。

示例代码
let rngTemp = Documents.Add().Content
rngTemp.InsertAfter("This is a test of the Grow method.")
MsgBox("Click OK to increase the font size of the fourth word.")
rngTemp.Words.Item(4).Font.Grow()

以下示例增大选定文本的字号。

示例代码
if(Selection.Type == wdSelectionNormal){
    Selection.Font.Grow()
}
else{
    MsgBox("You need to select some text.")
}


请参阅